#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: dynamic_base.py 
@version:
@time: 2022/01/17 
"""
from pprint import pprint

from TapClientCaseData.ColumnGenerateData.static.DDL.DDLbase import *

COMMON_TYPE = DDL_YML_STRING({'DBTYPE': 'common', 'FILE': 'common'})
NODE = DDL_YML_STRING({'DBTYPE': 'common', 'FILE': 'node'})
MYSQL01_TYPE = DDL_YML_STRING({'DBTYPE': 'mysql', 'FILE': 'TYPE'})
ORACLE02_TYPE = DDL_YML_STRING({'DBTYPE': 'oracle', 'FILE': 'TYPE'})
MONGODB03_TYPE = DDL_YML_STRING({'DBTYPE': 'mongodb', 'FILE': 'TYPE'})
POSTGRES05_TYPE = DDL_YML_STRING({'DBTYPE': 'postgres', 'FILE': 'TYPE'})
SQLSERVER06_TYPE = DDL_YML_STRING({'DBTYPE': 'sqlserver', 'FILE': 'TYPE'})


def generate_columns_data(args):
    """
    return ( )
    :param args:
    :return:
    """
    return f"({', '.join(args)})"


def GET(dictionary, key):
    return dictionary.get(key)


def GET_UPDATE(dictionary):
    return dictionary.get('UPDATE')
